//接口,是一种能力,一种约束而已
(()=>{
    //定义一个接口
    interface Iperson{
        firstName:string//姓氏
        lastName:String//名字
    }
    function showFullName(person:Iperson){
        return person.firstName + person.lastName;
    }

    const person = {
        firstName:'东方',
        lastName:'不败'
    }

    console.log(showFullName(person));
    
})()